package com.nuoniu.sibanyun.entity.erp;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 项目计划
 * </p>
 *
 * @author 小啊刚
 * @since 2021-10-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("prj_project_plan")
@ApiModel(value="ErpProjectPlan对象", description="项目计划")
public class ErpProjectPlan extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "上级id")
    @TableField("parent_id")
    private Integer parentId;

    @ApiModelProperty(value = "所有上级id")
    @TableField("parent_ids")
    private String parentIds;

    @ApiModelProperty(value = "计划名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "进度")
    @TableField("progress_rate")
    private Integer progressRate;

    @ApiModelProperty(value = "项目id")
    @TableField("project_id")
    private Integer projectId;

    @ApiModelProperty(value = "类型: 1计划2:里程碑")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty(value = "是否最末级")
    @TableField("tree_leaf")
    private Boolean treeLeaf;

    @ApiModelProperty(value = "层级")
    @TableField("tree_level")
    private Integer treeLevel;

    @ApiModelProperty(value = "开始日期")
    @TableField("begin_date")
    private LocalDate beginDate;

    @ApiModelProperty(value = "完成日期")
    @TableField("end_date")
    private LocalDate endDate;

    @ApiModelProperty(value = "状态 状态0未完成 1进行中 2已完成")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "负责人id")
    @TableField("person_liable_ids")
    private String personLiableIds;

    @ApiModelProperty(value = "负责人")
    @TableField("person_liable_names")
    private String personLiableNames;

    @ApiModelProperty(value = "创建人id")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty(value = "创建人")
    @TableField("create_user_name")
    private String createUserName;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "修改人id")
    @TableField("update_user_id")
    private Integer updateUserId;

    @ApiModelProperty(value = "修改人")
    @TableField("update_user_name")
    private String updateUserName;

    @ApiModelProperty(value = "修改日期")
    @TableField("update_date")
    private LocalDateTime updateDate;


}
